package com.woniu.job.controller;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

/**
 * base
 * @author song
 */
@Slf4j
@WebServlet(name = "init", urlPatterns = "/init", loadOnStartup = 1)
public class InitServlet extends HttpServlet {
    @Override
    public void init() throws ServletException
    {
        String path = getServletContext().getContextPath();
        getServletContext().setAttribute("base", path+"/");

    }
}
